#!/user/bin/env python3
# -*- coding: utf-8 -*-
"""
--------------------------------------
    Author:     JiChao_Song
    Date  :     2021/3/10 8:53
    Desc  :
--------------------------------------
"""
from servers.models.ProductModel import Product
from servers.servers.BaseServices import BaseServices


class ProductServices(BaseServices):

    def __init__(self, document=Product):
        super().__init__(document)

    def select(self, **kwargs):
        return self.document.objects(**kwargs).all()